<%@ Register TagPrefix="cc1" Namespace="PHSRAG.WebControls" Assembly="PHSRAG.WebControls" %>
<%@ Register TagPrefix="cc2" Namespace="PHSRAG.Insight21.InsightWebControls" Assembly="PHSRAG.Insight21.InsightWebControls" %>
<%@ Page Language="c#" Inherits="PHSRAG.Insight21.LaborDistribution"CodeFile="AgreementLaborDistribution.aspx.cs" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Labor Distribution</title>
    <link href="../Insight21.css" type="text/css" rel="stylesheet" />
</head>
<body>
    <form id="LaborDistributionForm" method="post" runat="server">
        <table class="Container" width="100%">
            <tr>
                <td>
                    <table class="Header" width="100%">
                        <tr>
                            <td>
                                <cc2:Header ID="Insight21Header" runat="server" OnNavigate="OnHeaderNavigate"></cc2:Header>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <cc2:AgreementsSubNavigation ID="agreementsSubNavigation" EnableOverviewNavigation="False" runat="server" OnNavigate="OnSubNavigate"/>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                 <cc2:AgreementDetailsSubNavigation ID="AgreementDetailsSubNavigation" runat="server" OnNavigate="OnDetailsSubNavigate" />
                            </td>
                        </tr>
                     <tr>
                            <td>
                                <br />
                                <cc1:BreadCrumb ID="breadCrumb" runat="server" OnNavigate="OnNavigate" />
                            </td>
                        </tr>
                        
                        <tr>
                            <td>
                                <cc2:ProjectHeaderBar ID="projectHeaderBar" runat="server" />
                            </td>
                        </tr>
                    </table>
                        <table cellspacing="10" class="SearchContainer" width="100%" cellpadding="10" style="background-color:#ffffff">
                            <tr>
                                <td>
                                <cc1:ExpandingPanel ID="expandingPanel" runat="server" ExpansionToggler="expansionToggler">
                                    <StaticTemplate>
                                        <table class="Search">
                                            <tr>
                                                <td>
                                                    <cc2:CommonSearch ID="commonSearch" runat="server" Module="Agreement" ExtendedSearchControl="LaborDistributionSearch"
                                                        OnSearch="OnSearch" COSPickerVisible="False" Field1Prompt="Employee Last Name:"
                                                        Field1ID="lastName" Field2Prompt="Employee First Name:" Field2ID="firstName"
                                                        ViewOptionVisible="false" PIPickerVisible="false" AddSinglePIToSearchCriteria="false" OnClearSelection="OnClearSelection" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="PanelSeparator">
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <cc1:ExpansionToggler ID="expansionToggler" runat="Server" CollapsedLinkCaption="Advanced Search Options"
                                                        ExpandedLinkCaption="Advanced Search Options" CollapsedImage="~/Images/Arrow_RT.gif"
                                                        ExpandedImage="~/Images/Arrow_DN.gif" />
                                                </td>
                                            </tr>
                                        </table>
                                    </StaticTemplate>
                                    <DynamicTemplate>
                                        <table class="Search">
                                            <tr>
                                                <td>
                                                    <cc2:LaborDistributionSearch ID="laborDistributionSearch"  runat="server"/>
                                                </td>
                                            </tr>
                                        </table>
                                    </DynamicTemplate>
                                </cc1:ExpandingPanel>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <cc2:SearchCriteriaDisplay ID="searchCriteriaDisplay" runat="server" />
                                <input type="hidden" id="hiddenSearchCriteria" runat="server" /></td>
                        </tr>
                    </table>
                    <table id="dynamicTable" class="Invisible" cellspacing="10">
                        <tr>
                            <td>
                                <cc1:ActivityIndicator ContainerID="dynamicTable" ID="activityIndicator"  runat="server">
                                </cc1:ActivityIndicator>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <cc1:Annunciator ID="annunciator" ContainerID="dynamicTable" runat="server"></cc1:Annunciator>
                            </td>
                        </tr>
                    </table>
                    <table class="PlaceBar">
                        <tr>
                            <td class="PageName">
                                Labor Distribution</td>
                            <td align="center">
                                <cc2:RefreshDates ID="refreshDates" runat="server" Visible="True" GLAsOfDateVisible="False"
                                    POAPAsOfDateVisible="False" SalaryAsOfDateVisible="True" />
                            </td>
                            <td align="right">
                                <cc2:InsightDownloadBar ID="reportDownload" useRootHost="true" runat="server" />
                            </td>
                            <td>
                                &nbsp;</td>
                        </tr>
                    </table>
                    <table width="100%" cellspacing="0" cellpadding="0">
                        <tr>
                            <td>
                                 <cc1:Pager ID="pagerAboveDatagrid" runat="server" OnFirstPage="OnFirstPage" OnLastPage="OnLastPage"
                                    OnNextPage="OnNextPage" OnPreviousPage="OnPreviousPage" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:DataGrid ID="laborDistributionGrid" runat="server" CssClass="DataGrid" AllowSorting="True"
                                    AllowCustomPaging="True" AutoGenerateColumns="False" Width="100%" AllowPaging="True" ShowFooter="True" OnItemCreated="OnItemCreated" OnItemDataBound="OnItemDataBound" OnSortCommand="OnSort">
                                    <AlternatingItemStyle CssClass="DataGridAlternatingItem"></AlternatingItemStyle>
                                    <ItemStyle CssClass="DataGridItem" />
                                    <HeaderStyle CssClass="DataGridHeader" />
                                    <FooterStyle CssClass="DataGridFooter"></FooterStyle>
                                    <PagerStyle Visible="False" />
                                    <Columns>
                                        <asp:BoundColumn DataField="EmployeeName" SortExpression="EmployeeName" ReadOnly="True" HeaderText="Name"></asp:BoundColumn>
                                        <asp:BoundColumn DataField="FundNumber" SortExpression="FundNumber" ReadOnly="True" HeaderText="Fund #"></asp:BoundColumn>
                                        <asp:BoundColumn DataField="EarningsCode" SortExpression="EarningsCode" ReadOnly="True" HeaderText="Earnings Code"></asp:BoundColumn>
                                        <asp:BoundColumn DataField="JobCode" SortExpression="JobCode" ReadOnly="True" HeaderText="Job Code"></asp:BoundColumn>
                                        <asp:BoundColumn DataField="PayDate" SortExpression="PayDate" ReadOnly="True" HeaderText="Pay Date"></asp:BoundColumn>
                                        <asp:BoundColumn DataField="RetroAdjustmentDate" SortExpression="RetroPayAdjustmentDate" ReadOnly="True" HeaderText="Retro-Adjustment Date"></asp:BoundColumn>
                                        <asp:BoundColumn DataField="PayAmount" SortExpression="PayAmount" ReadOnly="True" HeaderText="Pay Amount">
                                         <ItemStyle HorizontalAlign="Right"></ItemStyle>
                                         <FooterStyle HorizontalAlign="Right"></FooterStyle>
                                         </asp:BoundColumn>
                                    </Columns>
                                    <PagerStyle Visible="False"></PagerStyle>
                             </asp:DataGrid>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                  <cc1:Pager ID="pagerBelowDatagrid" runat="server" OnFirstPage="OnFirstPage" OnLastPage="OnLastPage"
                                    OnNextPage="OnNextPage" OnPreviousPage="OnPreviousPage" />
                            </td>
                        </tr>
                    </table>
			
        </td></tr></table>
    </form>
</body>
</html>

